package interpreter;

/**
 * 非终结表达式
 */
public abstract class AbstractNonTerminalExp implements IExpression{
    protected IExpression leftExp;
    protected IExpression rightExp;

    public AbstractNonTerminalExp(IExpression leftExp, IExpression rightExp) {
        this.leftExp = leftExp;
        this.rightExp = rightExp;
    }

    @Override
    public abstract int interpret();
}
